package com.fafa.pos.util.newland;

/**
 * Created by chenk on 2014/5/22.
 * 加密算法
 */
public enum CrypAlgorithm {
    DES("DES/ECB/NoPadding","DES",8),
    DES3("DESede/ECB/NoPadding","DESede",24);

    /**
     * 算法名称
     */
    private String algorithmName;
    private String keyType;
    /**
     * 密钥长度
     */
    private int keyLength;

    CrypAlgorithm(String algorithmName, String keyType,int keyLength) {
        this.algorithmName = algorithmName;
        this.keyType = keyType;
        this.keyLength = keyLength;
    }

    public String getAlgorithmName() {
        return algorithmName;
    }

    public void setAlgorithmName(String algorithmName) {
        this.algorithmName = algorithmName;
    }

    public int getKeyLength() {
        return keyLength;
    }

    public void setKeyLength(int keyLength) {
        this.keyLength = keyLength;
    }

    public String getKeyType() {
        return keyType;
    }

    public void setKeyType(String keyType) {
        this.keyType = keyType;
    }
}

